﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.Rooms
{
    [RemoteService(isEnabled: false)]
    public interface IRoomsAppService:IApplicationService
    {
        /// <summary>
        /// 获取科室诊室
        /// </summary>
        Task<BackJson> GetDepartmentRooms(Guid depId, string? filterName, int page, int pageSize);

        /// <summary>
        /// 加载诊室详情
        /// </summary>
        Task<BackJson> GetAsync(Guid id);

        /// <summary>
        /// 提交新建
        /// </summary>
        Task<BackJson> SubmitCreate(CreateRoomDto dto, Guid depId);

        /// <summary>
        /// 提交修改
        /// </summary>
        Task<BackJson> SubmitEdit(RoomDto dto, Guid depId);

        /// <summary>
        /// 删除多个
        /// </summary>
        Task<BackJson> DeleteMany(List<Guid> idList);

        /// <summary>
        /// 删除单个
        /// </summary>
        Task<BackJson> Delete(Guid id);
    }
}
